export interface History {
  id: string;
  date: number;
  desc: string[];
}

export const findAll = () => {
  return useServerRequest<History[]>("/histories", {
    method: "GET",
  });
};
export const findOne = (id: string) => {
  return useServerRequest<History>(`/histories/${id}`, {
    method: "GET",
  });
};
